package com.nengyuan;

import com.sun.source.doctree.SummaryTree;

import java.util.Scanner;

public class ZhenShu {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入第一个数");
        int yy = scanner.nextInt();
        System.out.println("请输入第二个数");
        int uu = scanner.nextInt();
        int sum = yy+uu;
        int sub = yy-uu;

        System.out.println("两数之和"+sum);
        System.out.println("两数之差"+sub);





    }
}
